package com.kang.service.impl;

import com.kang.dao.AgencyDao;
import com.kang.dao.impl.AgencyDaoImpl;
import com.kang.entity.ServiceInfo;
import com.kang.service.AgencyService;

import java.util.List;

/**
 * Created by 12904 on 2018/7/28.
 */

public class AgencyServiceImpl implements AgencyService
{

    @Override
    public List<ServiceInfo> find(int page, int size)
    {
        AgencyDao dao = new AgencyDaoImpl();
        return dao.find(page,size);
    }

    @Override
    public int find()
    {
        AgencyDao dao = new AgencyDaoImpl();
        return dao.find();
    }

    @Override
    public int delAgency(int id)
    {
        AgencyDao dao = new AgencyDaoImpl();
        return dao.delAgency(id);
    }
}
